<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;"> 
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8"/>
<xsl:template match="/" name="editSector">
<form id="form1" name="form1" method="post" action="index.php">
<table>
	<caption>
		sector
	</caption>
	<tr>
		<th scope="row">id</th>
		<td>
		  <input type="text" size="10" readonly="readonly" >
		   <xsl:call-template name="bee_php_input">
		     <xsl:with-param name="id">id</xsl:with-param>
		   </xsl:call-template>
		  </input>
		</td>
	</tr>
  <xsl:if test="form/variables/sys_kom_filter='0'">
	<tr>
	  <th scope="row">Customer</th>
	  <td>
	    <select name="komitent" id="komitent">
	     <xsl:call-template name="bee_php_option">
         <xsl:with-param name="id">org_id</xsl:with-param>
       </xsl:call-template>
      </select>
	  
    </td>
	  </tr>
    </xsl:if>
	<tr>
		<th scope="row">name</th>
		<td>
		  <input type="text" size="40">		
		   <xsl:call-template name="bee_php_input">
         <xsl:with-param name="id">name</xsl:with-param>
       </xsl:call-template>
		  </input>
		</td>
	</tr>
	<tr>
		<th scope="row">description</th>
		<td>
		  <textarea cols="50" rows="3">
       <xsl:call-template name="bee_php_inputarea">
         <xsl:with-param name="id">description</xsl:with-param>
       </xsl:call-template>		  
		  </textarea>
		</td>
	</tr>
	<tr>
		<th colspan="2" scope="row"><div align="right">
			<xsl:choose>
				<xsl:when test="/form/rowData/sector/id = ''">
					<input name="sys_action=add" type="submit" id="sys_action_add" value="Add" />
				</xsl:when>
				<xsl:otherwise>
					<input name="sys_action=edit" type="submit" id="sys_action_edit" value="Edit" />
				</xsl:otherwise>
			</xsl:choose>
		</div></th>
		</tr>
</table>
<br />
<br />
</form>
</xsl:template>
</xsl:stylesheet>